package mtons.cast.modules.utils;

import java.text.NumberFormat;

/**
 * Created by langhsu on 2017/10/12.
 */
public class NumberUtils {
    public static String format(Double d) {
        NumberFormat nf = NumberFormat.getNumberInstance();
        nf.setMaximumFractionDigits(3);
        return nf.format(d);
    }
}
